package com.one.group.service;

import com.mybatisflex.core.service.IService;
import com.one.group.model.dto.AdvertAddDto;
import com.one.group.model.dto.AdvertData;
import com.one.group.model.dto.AdvertQueryDto;
import com.one.group.model.dto.AdvertUpdateDto;
import com.one.group.model.entity.Advert;
import com.one.group.model.vo.AdvertListVo;

import java.util.List;

/**
 * @Author wanbo
 * @Date 2025/9/28 16:49
 */
public interface AdvertService {

    AdvertListVo findAdvertListByCellId(String cellId);

    /**
     * 根据id查询广告
     * @param id
     * @return
     */
    Advert findAdvertById(String id);

    void insertAdvertByUpload(AdvertData advertData);

    /**
     * 根据条件分页查询
     * @param advertQueryDto
     * @return
     */
    AdvertListVo findAdvertByQueryDto(AdvertQueryDto advertQueryDto);

    /**
     * 添加广告
     * @param advertAddDto
     * @return
     */
    void inertAdvert(AdvertAddDto advertAddDto);

    /**
     * 修改广告位
     * @param advertUpdateDto
     * @return
     */
    void updateAdvert(AdvertUpdateDto advertUpdateDto);

    /**
     * 删除广告
     * @param id
     * @return
     */
    void deleteAdvertById(String id);

    /**
     * 批量添加广告
     * @param advertList
     */
    void insertAdvertList(List<Advert> advertList);

    void deleteBatch(List<String> ids);

}
